<@cms.categoryList advanced=true parentId=parentId pageSize=500>
<ul>
    <#list page.list as a>
        <@t.merge 'categoryIds' a.id!/>
    </#list>
    <@sys.deptItem itemType='category' deptId=(admin.deptId)!'' itemIds=t.categoryIds!><#assign deptCategoryMap=map!/></@sys.deptItem>
    <#list page.list as a>
        <#if (deptCategoryMap[a.id?string])?has_content&&deptCategoryMap[a.id?string]>
            <li<#if a.childIds?has_content> _src="common/contentCategoryTree.html?parentId=${a.id}"</#if>>
                <a href="common/content_list.html?categoryId=${a.id}" target="ajax" rel="contentBox" class="exclude-translate">${(a.name)!}</a>
            </li>
        </#if>
    <#else>
        <li><a><@t.page 'empty_directory'/></a></li>
    </#list>
</ul>
</@cms.categoryList>